package com.teen9g.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

//教学楼和学院楼相关内容实体类
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
public class TeachingBuilding implements Serializable {
    @TableId(value = "content_id", type = IdType.AUTO)
    private Integer contentId; //内容id
    private Integer buildingId; //教学楼或学院楼号 DTO
    private String buildingName; //教学楼或学院楼名称 DTO
    private String roomNumber; //房间号 DTO
    private String contentTitle; //内容标题 DTO
    private String contentDescription; //内容描述 DTO
    private String contentImage; //内容图片列表（最多6张）DTO
    private String contentAuthor; //内容作者
    private String contentRecentEditor; //最近编辑人
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime contentCreateTime; //内容创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime contentUpdateTime; //内容更新时间
    private Integer contentView; //内容浏览量
    private Integer contentCommentCount; //内容评论数量

}
